Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Codebook</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Codebook"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Codebook rootpage-Codebook skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Codebook</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">For the concept in machine learning, see <a href="Vector_quantization" title="Vector quantization">Vector quantization</a>.</div>


<p>A <b>codebook</b> is a type of document used for gathering and storing <a href="Cryptography_code" class="mw-redirect" title="Cryptography code">cryptography codes</a>. Originally, codebooks were often literally <a href="Books" class="mw-redirect" title="Books"><span lang="en-us" dir="ltr">books</span></a>, but today "codebook" is a byword for the complete record of a series of codes, regardless of physical format.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Cryptography">Cryptography</h2></div>
<p>In <a href="Cryptography" title="Cryptography">cryptography</a>, a codebook is a document used for implementing a <a href="Code_(cryptography)" title="Code (cryptography)">code</a>. A codebook contains a <a href="Lookup_table" title="Lookup table">lookup table</a> for coding and decoding; each word or phrase has one or more strings which replace it. To decipher messages written in code, corresponding copies of the codebook must be available at either end. The distribution and <a href="Physical_security" title="Physical security">physical security</a> of codebooks presents a special difficulty in the use of codes compared to the secret information used in <a href="Cipher" title="Cipher">ciphers</a>, the <a href="Cryptographic_key" class="mw-redirect" title="Cryptographic key">key</a>, which is typically much shorter.
</p><p>The United States <a href="National_Security_Agency" title="National Security Agency">National Security Agency</a> documents sometimes use <i>codebook</i> to refer to <a href="Block_cipher" title="Block cipher">block ciphers</a>; compare their use of <i>combiner-type algorithm</i> to refer to <a href="Stream_cipher" title="Stream cipher">stream ciphers</a>.
</p><p>Codebooks come in two forms, one-part or two-part:
</p>
<ul><li>In one-part codes, the plaintext words and phrases and the corresponding code words are in the same alphabetical order. They are organized similar to a standard dictionary. Such codes are half the size of two-part codes but are more vulnerable since an attacker who recovers some code word meanings can often infer the meaning of nearby code words. One-part codes may be used simply to shorten messages for transmission or have their security enhanced with <a href="Superencryption" class="mw-redirect" title="Superencryption">superencryption</a> methods, such as adding a secret number to numeric code words.<sup id="cite_ref-pommerening_1-0" class="reference"><a href="#cite_note-pommerening-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></li>
<li>In two-part codes, one part is for converting plaintext to ciphertext, the other for the opposite purpose. They are usually organized similarly to a language translation dictionary, with plaintext words (in the first part) and ciphertext words (in the second part) presented like dictionary headwords.</li></ul>
<p>The earliest known use of a codebook system was by Gabriele de Lavinde in 1379 working for the <a href="Antipope_Clement_VII" title="Antipope Clement VII">Antipope Clement VII</a>.<sup id="cite_ref-pommerening_1-1" class="reference"><a href="#cite_note-pommerening-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>Two-part codebooks go back as least as far as
<a href="Antoine_Rossignol" class="mw-redirect" title="Antoine Rossignol">Antoine Rossignol</a> in the 1800s.<sup id="cite_ref-pommerening_1-2" class="reference"><a href="#cite_note-pommerening-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>From the 15th century until the middle of the 19th century,
nomenclators (named after <a href="Nomenclator_(nomenclature)" title="Nomenclator (nomenclature)">nomenclator</a>) were the most used cryptographic method.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>Codebooks with superencryption were the most used cryptographic method of World War I.<sup id="cite_ref-pommerening_1-3" class="reference"><a href="#cite_note-pommerening-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>The <a href="JN-25" class="mw-redirect" title="JN-25">JN-25</a> code used in World War II used a codebook of 30,000 code groups superencrypted with 30,000 random additives.
</p><p>The book used in a <a href="Book_cipher" title="Book cipher">book cipher</a> or the book used in a <a href="Running_key_cipher" title="Running key cipher">running key cipher</a> can be any book shared by sender and receiver and is different from a cryptographic codebook.
</p>
<div class="mw-heading mw-heading2"><h2 id="Social_sciences">Social sciences</h2></div>
<p>In social sciences, a codebook is a document containing a list of the codes used in a set of data to refer to variables and their values, for example locations, occupations, or clinical diagnoses.
</p>
<div class="mw-heading mw-heading2"><h2 id="Data_compression">Data compression</h2></div>
<p>Codebooks were also used in 19th- and 20th-century <a href="Commercial_code_(communications)" title="Commercial code (communications)">commercial codes</a> for the non-cryptographic purpose of data compression.
</p><p>Codebooks are used in relation to <a href="Precoding" title="Precoding">precoding</a> and <a href="Beamforming" title="Beamforming">beamforming</a> in mobile networks such as <a href="5G" title="5G">5G</a> and <a href="LTE_(telecommunication)" title="LTE (telecommunication)">LTE</a>. The usage is standardized by <a href="3GPP" title="3GPP">3GPP</a>, for example in the document <a rel="nofollow" class="external text" href="https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=3197">TS 38.331</a>, NR; Radio Resource Control (RRC); Protocol specification.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Block_cipher_modes_of_operation" class="mw-redirect" title="Block cipher modes of operation">Block cipher modes of operation</a></li>
<li><a href="The_Code_Book" title="The Code Book">The Code Book</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-pommerening-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-pommerening_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pommerening_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pommerening_1-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-pommerening_1-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text">
Klaus Pommerening.
<a rel="nofollow" class="external text" href="https://www.staff.uni-mainz.de/pommeren/Cryptology/Classic/1_Monoalph/Codebook.html">"Codebooks"</a>.</span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">
Chris Christensen.
<a rel="nofollow" class="external text" href="https://www.nku.edu/~christensen/section%2023%20codes.pdf">"Codes and Nomenclators"</a>.
p. 4</span>
</li>
</ol></div></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-03-20" href="https://en.wikipedia.org/wiki/?title=Codebook&amp;oldid=1281398455">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>